home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / library / amymetfl.lha / AmigaMetaFileFormat / AmfFunctions.doc < prev    next >
Text File  |  1996-04-16  |  8KB  |  177 lines

  1. Overview over all functions that implemented. Some functions are not very
  2. well presentet in some output-formats.
  3. Example: Some CGM-Reader draw the pie and the arc wrong, other not.
  4.  
  5. 0------> x=32767
  6. |
  7. |
  8. |
  9. V
  10. y=32767
  11.                                                                     .90
  12. all angles are in degree and start is left and go anticlockwise  180 * ..0
  13. all values are LONG                                                 270
  14.  
  15. AmfFunctions:
  16.  
  17. FUNCTION            DESCRIPTION               ARGUMENTS
  18.  
  19. DrawFunctions:
  20.  0 CLEAR_REGION     Fill a rectangle with     xstart   leftedge
  21.                     the BackgroundColor       ystart   topedge
  22.                                               xend     rightedge
  23.                                               yend     bottomedge
  24.  
  25.  1 *OBSOLETE*
  26.  
  27.  2 *OBSOLETE*
  28.  
  29.  3 LINE             Draw line                 xstart
  30.                                               ystart
  31.                                               xend
  32.                                               yend
  33.  
  34.  4 *OBSOLETE*
  35.  
  36.  5 TEXT             Write text                x       x-position
  37.                                               y       y-position
  38.                                               alpha   angle
  39.                                               CHARS   0-terminated
  40.  
  41.  6 ELLIPSE          Draw ellipse              x       x-position of center
  42.                                               y       y-position of center
  43.                                               xsize   radius in x
  44.                                               ysize   radius in y
  45.  
  46.  7 BOX              Draw rectangle            xstart  leftedge
  47.                                               ystart  topedge
  48.                                               xend    rightedge
  49.                                               yend    bottomedge
  50.  
  51.  8 FILL_ELLIPSE     Draw a filled ellipse     see ELLIPSE
  52.  
  53.  9 FILL_BOX         Draw a filled rectangle   see BOX
  54.  
  55. 10 *OBSOLETE*
  56.  
  57. 11 POLYGON          Draw a polygon            x,y - pars
  58.                                               make move to first x,y then
  59.                                               draw to the next x,y's
  60.  
  61. 12 BITMAP_PIC       Paint a bitmappicture     not supported yet
  62.  
  63. 13 ARC              Draw a elliptical arc     x       x-position of center
  64.                                               y       y-position of center
  65.                                               xsize   radius in x
  66.                                               ysize   radius in y
  67.                                               alpha   start angle
  68.                                               beta    end angle
  69.  
  70. 14 MARK             Draw marker               x
  71.                                               y
  72.  
  73. 15 CURVE            Draw beziercurve like     x1,y1         startposition
  74.                     postscript-operator       x2,y2         first and
  75.                     'curve to'                x3,y3         second holdpos
  76.                                               x4,y4         endposition
  77.  
  78. 16 FILL_POLY        Draw a filled polygon     see POLYGON but it closed the
  79.                                               polygon
  80.  
  81. 17 ROUNDED          Draw a rounded rectangle  xstart  leftedge
  82.                                               ystart  topedge
  83.                                               xend    rightedge
  84.                                               yend    bottomedge
  85.  
  86. 18 PIE              Draw a pie.               x       x-position of center
  87.                                               y       y-position of center
  88.                                               xsize   radius in x
  89.                                               ysize   radius in y
  90.                                               alpha   start angle
  91.                                               beta    end angle
  92.  
  93. 19 FILL_ROUNDED     Draw a filled rounded     xstart  leftedge
  94.                     rectangle                 ystart  topedge
  95.                                               xend    rightedge
  96.                                               yend    bottomedge
  97.  
  98. 20 FILL_PIE         Draw a filled pie.        x       x-position of center
  99.                                               y       y-position of center
  100.                                               xsize   radius in x
  101.                                               ysize   radius in y
  102.                                               alpha   start angle
  103.                                               beta    end angle
  104.  
  105. SetFunctions:
  106. 100 FONT            Like 106 but fontheight   see SETFONT
  107.                     in metacoordinates,
  108.                     in metafile will SETFONT
  109.                     to FONT
  110.  
  111. 101 SETFGPEN        Set the forgroundpen      r    red-value   |Byte repeated
  112.                                               g    green-value |in every Byte
  113.                                               b    blue-value  |from ULONG
  114.  
  115. 102 SETBGPEN        Set the backgroundpen     see forgroundpen
  116.  
  117. 103 SETDRMODE       Set drawmode              mode    0 w/o background
  118.                                                       1 with background
  119.                                                       2 complement
  120.                                                       3 invert
  121.  
  122. 104 SETLINEPAT      Set linepattern           patnr   0 solid
  123.                                                       1 - - -
  124.                                                       2 -- --
  125.                                                       3 .....
  126.                                                       4 -.-.-
  127.                                                       5 --.--
  128.  
  129. 105 SETLINEWIDTH    Set linewidth             size    width of line
  130.  
  131. 106 SETFONT         Set font                  size    height of font in point
  132.                                               style   fontstyle
  133.                                                       0-plain, 1-underline,
  134.                                                       2-bold, 4-italic
  135.                                               CHARS   0 terminated
  136.  
  137. 107 SETFILLPAT      Set fillpattern           patnr   0 solid
  138.                                                       1 ////
  139.                                                       2 \\\\
  140.                                                       3 ||||
  141.                                                       4 ====
  142.                                                       5 XXXX
  143.                                                       6 ++++
  144.  
  145. 108 SETMARKSIZE     Set the size of marker    size    height of marker
  146.  
  147. 109 SETMARKTYPE     Set type of marker        type    0 x
  148.                                                       1 filled square
  149.                                                       2 outline dreieck
  150.                                                       3 outline square
  151.                                                       4 o
  152.                                                       5 +
  153.                                                       6 outline karo
  154.  
  155. 110 SETDPI          Set the resolution of     xdpi    resolution in x
  156.                     output-device, only for   ydpi    resolution in y
  157.                     for channel=1 or 4                both in points per inch
  158.                     The initial resolution
  159.                     for channel1 and 4 are
  160.                     72 dpi, change only if
  161.                     you know what you do!
  162.  
  163. GetFunctions:
  164. 200 GETFONTHEIGHT   calcs the height of the     alpha     angle
  165.                     choiced font in virtual
  166.                     points (0 to 32767)
  167.  
  168. 201 GETSTRINGLENGHT calcs the lenght of the     alpha     angle
  169.                     string in virtual points    CHARS     0 terminated
  170.                     (0 to 32767)
  171.  
  172. 202 GETBASELINE     calcs the height of         alpha     angle
  173.                     baseline in virtual points
  174.                     (0 to 32767)
  175.  
  176.  
  177.